$(function(){
	//绑定客户关联关系bindstoreCust
    $(document).on("click",".bindstoreCust",function(){
    	UclientId=$(this).parents("tr").children("td[field='clientId']").text()
        UclientName=$(this).parents("tr").children("td[field='clientName']").text()
        Usource=window.location.pathname.replace("/","")
        var UorgId=$(this).parent(".datagrid-cell").parent().siblings("td[field='orgId']").text()
        var Usource=window.location.pathname.replace("/","")
        console.log(UorgId)
        var unbindCustL="<iframe class='iframeCustL' src="+Feng.ctxPath+"/bindclient?UorgId="+UorgId+"&Usource="+Usource+"></iframe>"
        var unbindCustR="<iframe class='iframeCustR' src="+Feng.ctxPath+"/erpcustomer?UorgId="+UorgId+"&Usource="+Usource+"></iframe>"
//    	var ajax = new $ax(Feng.ctxPath +'/clientcustomer/batchadd', function (data) {
//    		Feng.success("请求成功!");
//    	}, function (data) {
//    		Feng.error("请求失败!" + data.responseJSON.message + "!");
//    	});
//    	ajax.set("json",JSON.stringify(objErpcustomerArr));
//    	ajax.start();
//        $(".datagrid-view2").css({"height":"300px","overflow-y":"scroll"})
//        $(".datagrid-btable").css("position","absolute")
        console.log($("#content-main"))
        console.log($("window.parent.iframe24.document"))
        $("#content-main").css();
        $("#content-main").after(unbindCustR);
        $("#content-main").after(unbindCustL);
//        $(".datagrid-pager.pagination").css({"top":"-428px"})
//        $(".iframeCustL").css({"z-index":"999","position":"absolute","bottom":"0px","width":"50%","height":"428px","overflow":"auto"})
//        $(".iframeCustR").css({"z-index":"999","position":"absolute","bottom":"0px","width":"50%","height":"428px","right":"0","overflow":"auto"})
        
	})
})
